package com.frontop.system.modules.sys.service.impl;

import com.frontop.system.modules.sys.model.SysRoleMenu;
import com.frontop.system.modules.sys.mapper.SysRoleMenuMapper;
import com.frontop.system.modules.sys.service.SysRoleMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author YangJia
 * @since 2022-01-18
 */
@Service
public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRoleMenu> implements SysRoleMenuService {
    @Autowired
    SysRoleMenuMapper sysRoleMenuMapper;
    @Override
    public List<Integer> getSysRoleMenuIdsByRole(Integer roleId) {
        return sysRoleMenuMapper.getSysRoleMenuIdsByRole(roleId);
    }
}
